<?php

namespace Admin\Factory\Controller;

use Admin\Controller\DishController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class DishControllerFactory implements FactoryInterface
{
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $identityService = $serviceLocator->getServiceLocator()->get('AdminIdentityManager');
        $controller = new DishController($identityService);
        return $controller;
    }
}